// export const add = {
//   type: 'ADD'
// }
import * as actionType from './actionType'
export const add = () => {
  return {
    type: actionType.ADD
  }
}
export const jian = () => {
  return {
    type: actionType.JIAN
  }
}

export const addAsync = () => {
  return dispatch => {
    setTimeout(() => {
      console.log(1111)
      dispatch({
        type: actionType.ADD
      })
    }, 1000)
  }
}
